﻿using Grabacr07.KanColleWrapper.Models;
using System;

namespace FleetCode.Model
{
    [Serializable]
    public class Item
    {
        public int id { get; set; }

        public int rf { get; set; }

        public static Item Convert(SlotItem item)
        {
            if (item.Info.Id == 0)
                return null;
            return new Item
            {
                id = item.Info.Id,
                rf = item.Adept
            };
        }
    }
}